package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ocom.common.entity.card.EntityXfRecordProcess;
import com.ocom.common.request.payconfig.ConsumeDetailErrorRequest;
import com.ocom.common.request.payconfig.GzhRefundQueryRequest;
import com.ocom.common.request.payconfig.PerDiscountLimitRequest;
import com.ocom.common.request.payhandle.QrCodeMachDailySummaryRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.payconfig.PerDiscountLimitVo;

import java.util.List;

public interface XfRecordProcessService extends IService<EntityXfRecordProcess> {
    int insertEntityXfRecord(Long companyID, EntityXfRecordProcess entityXfRecord);

    int updateEntityXfRecord(Long companyID, EntityXfRecordProcess updateXfRecordProcess);

    EntityXfRecordProcess selectTradeNo(Long companyID, String tradeNo, String machNo);

    List<EntityXfRecordProcess> selectPlatOrderNo(Long companyID, String platOrderNo);

    PageInfo<EntityXfRecordProcess> selectGzhRechargePageInfo(Long companyID, GzhRefundQueryRequest request);

    List<EntityXfRecordProcess> selectMachDailySummary(Long companyID, QrCodeMachDailySummaryRequest request);

    Result selectConsumeDetailError(Long companyID, ConsumeDetailErrorRequest request);

    PerDiscountLimitVo selectUserDiscount(Long companyId, PerDiscountLimitRequest request);

    //缴费和充值的定时任务用
    public List<EntityXfRecordProcess> selectPayment(Long comId, Integer consState);
}
